package com.panasonic.cn.cmsc;

import java.io.*;
import java.lang.*;
import java.util.*;
import java.math.*;
import java.sql.SQLException;
import com.fujitsu.fks.jaaf.core.*;

public class SQLMM0102{
	private Hashtable paramsString     = new Hashtable();
	private Hashtable paramsBigDecimal = new Hashtable();
	private Hashtable paramsFree       = new Hashtable();
	private String lastSql_ = null;

	private String getString(String name){
		if(name==null) return "";
		String returnStr = (String)paramsString.get(name);
		if(returnStr==null) return "";
		return "'"+FrameworkCommon.stringReplaceSQuote(returnStr)+"'";
	}

	private String getBigDecimal(String name){
		if(name==null) return "";
		BigDecimal returnStr = (BigDecimal)paramsBigDecimal.get(name);
		if(returnStr==null) return "";
		return returnStr.toString();
	}

	private String getFree(String name){
		if(name==null) return "";
		String returnStr = (String)paramsFree.get(name);
		if(returnStr==null) return "";
		return returnStr;
	}

	public String getLastSql(){
		return lastSql_;
	}

	public SelectResultRset SELECT_M0101(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE ");
		sql.append("	CTRL_DVSN_CD "+((getString("CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("CTRL_DVSN_CD")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		sql.append("	");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0102(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append(" 	NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append(" 	NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE ");
		sql.append("	CTRL_DVSN_CD "+((getString("CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("CTRL_DVSN_CD")+" ");
		sql.append("	AND ");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+" ");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+"");
		sql.append("	AND ");
		sql.append("	APL_BDT <"+((getString("SYS_DATE").equals(""))?" is null ":"=")+getString("SYS_DATE")+" ");
		sql.append("	AND ");
		sql.append("	APL_EDT >"+((getString("SYS_DATE").equals(""))?" is null ":"=")+getString("SYS_DATE")+" ");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("RGS_D")+" ");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("UPD_D")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		sql.append("	");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0103(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE ");
		sql.append("	CTRL_DVSN_CD "+((getString("CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("CTRL_DVSN_CD")+" ");
		sql.append("	AND ");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+" ");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+"");
		sql.append("	AND ");
		sql.append("	APL_BDT > "+getString("SYS_DATE")+" ");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("RGS_D")+" ");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("UPD_D")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		sql.append("	");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0104(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE ");
		sql.append("	CTRL_DVSN_CD "+((getString("CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("CTRL_DVSN_CD")+" ");
		sql.append("	AND ");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+"");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("RGS_D")+" ");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("UPD_D")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	AND ( ");
		sql.append("	FM_TYP <> "+getString("FM_TYP9")+" ");
		sql.append("	OR (");
		sql.append("	FM_TYP "+((getString("FM_TYP9").equals(""))?" is null ":"=")+getString("FM_TYP9")+" AND APL_EDT >"+((getString("SYS_DATE").equals(""))?" is null ":"=")+getString("SYS_DATE")+" ");
		sql.append("	) )");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		sql.append("	");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0105(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE ");
		sql.append("	CTRL_DVSN_CD "+((getString("CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("CTRL_DVSN_CD")+" ");
		sql.append("	AND ");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+"");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("RGS_D")+" ");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("UPD_D")+" ");
		sql.append("	AND ");
		sql.append("	APL_EDT < "+getString("SYS_DATE")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP "+((getString("FM_TYP9").equals(""))?" is null ":"=")+getString("FM_TYP9")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0101_2(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE  ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		sql.append("	");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0102_2(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE");
		sql.append("	(CTRL_DVSN_CD LIKE "+getString("CTRL_DVSN_CD")+" ");
		sql.append("	OR");
		sql.append("	CTRL_DVSN_CD "+((getString("PC_CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("PC_CTRL_DVSN_CD")+")");
		sql.append("	AND ");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+" ");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+"");
		sql.append("	AND ");
		sql.append("	APL_BDT <"+((getString("SYS_DATE").equals(""))?" is null ":"=")+getString("SYS_DATE")+" ");
		sql.append("	AND ");
		sql.append("	APL_EDT >"+((getString("SYS_DATE").equals(""))?" is null ":"=")+getString("SYS_DATE")+" ");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("RGS_D")+" ");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("UPD_D")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		sql.append("	");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0103_2(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE ");
		sql.append("	(CTRL_DVSN_CD LIKE "+getString("CTRL_DVSN_CD")+" ");
		sql.append("	OR");
		sql.append("	CTRL_DVSN_CD "+((getString("PC_CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("PC_CTRL_DVSN_CD")+")");
		sql.append("	AND ");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+" ");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+"");
		sql.append("	AND ");
		sql.append("	APL_BDT > "+getString("SYS_DATE")+" ");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("RGS_D")+" ");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("UPD_D")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		sql.append("	");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0104_2(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE  ");
		sql.append("	(CTRL_DVSN_CD LIKE "+getString("CTRL_DVSN_CD")+" ");
		sql.append("	OR");
		sql.append("	CTRL_DVSN_CD "+((getString("PC_CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("PC_CTRL_DVSN_CD")+")");
		sql.append("	AND ");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+" ");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("RGS_D")+" ");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("UPD_D")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	AND ( ");
		sql.append("	FM_TYP <> "+getString("FM_TYP9")+" ");
		sql.append("	OR (");
		sql.append("	FM_TYP "+((getString("FM_TYP9").equals(""))?" is null ":"=")+getString("FM_TYP9")+" AND APL_EDT >"+((getString("SYS_DATE").equals(""))?" is null ":"=")+getString("SYS_DATE")+" ");
		sql.append("	) )");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		sql.append("	");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0105_2(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE");
		sql.append("	(CTRL_DVSN_CD LIKE "+getString("CTRL_DVSN_CD")+" ");
		sql.append("	OR");
		sql.append("	CTRL_DVSN_CD "+((getString("PC_CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("PC_CTRL_DVSN_CD")+")");
		sql.append("	AND");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+" ");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+"");
		sql.append("	AND ");
		sql.append("	APL_EDT < "+getString("SYS_DATE")+" ");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("RGS_D")+" ");
		sql.append("	AND ");
		sql.append("	SUBSTR(TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS'),0,8) LIKE "+getString("UPD_D")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP "+((getString("FM_TYP9").equals(""))?" is null ":"=")+getString("FM_TYP9")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC  ");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0104_3(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE ");
		sql.append("	CTRL_DVSN_CD "+((getString("CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("CTRL_DVSN_CD")+" ");
		sql.append("	AND ");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+"");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+" ");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	APL_BDT LIKE "+getString("APL_DATE")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0104_2_3(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(VDR_CD,'') AS VDR_CD,");
		sql.append("	NVL(APL_BDT,'') AS APL_BDT,");
		sql.append("	NVL(APL_EDT,'') AS APL_EDT,");
		sql.append("	NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append("	NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append("	NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append("	NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append("	NVL(CTY_CD,'') AS CTY_CD,");
		sql.append("	NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append("	NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append("	NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append("	NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append("	NVL(TEL_NO,'') AS TEL_NO,");
		sql.append("	NVL(FAX_NO,'') AS FAX_NO,");
		sql.append("	NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append("	NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append("	NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append("	NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append("	NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append("	NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append("	NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append("	NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append("	NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append("	NVL(STATE_CD,'') AS STATE_CD,");
		sql.append("	NVL(AREA_CD,'') AS AREA_CD,");
		sql.append("	NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append("	NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append("	NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append("	NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append("	NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append("	NVL(CORP_CD,'') AS CORP_CD,");
		sql.append("	NVL(CDR_CD,'') AS CDR_CD,");
		sql.append("	NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append("	NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append("	NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append("	NVL(RMK,'') AS RMK,");
		sql.append("	NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append("	NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append("	NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append("	NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append("	NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append("	NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append("	NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append("	NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append("	NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append("	NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append("	NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append("	NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append("	NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append("	NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append("	NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append("	NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append("	NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append("	NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append("	NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append("	NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append("	NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append("	NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append("	NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append("	NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP, ");
		sql.append("	NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append("	NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append("	NVL(SITE_NM,'') AS SITE_NM,");
		sql.append("	NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append("    NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append("    NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append("    NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append("    NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append("    NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append("    NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append("    NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append("    NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append("	TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append("	NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append("	NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append("	TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append("	NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append("	NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append("	NVL(FM_TYP,'') AS FM_TYP ");
		sql.append("	FROM ");
		sql.append("	M01 ");
		sql.append("	WHERE  ");
		sql.append("	(CTRL_DVSN_CD LIKE "+getString("CTRL_DVSN_CD")+" ");
		sql.append("	OR");
		sql.append("	CTRL_DVSN_CD "+((getString("PC_CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("PC_CTRL_DVSN_CD")+")");
		sql.append("	AND");
		sql.append("	VDR_CD LIKE "+getString("VDR_CD")+" ");
		sql.append("	AND ");
		sql.append("	TRPT_CLSS_D_TYP LIKE "+getString("TRPT_CLSS_D_TYP")+"");
		sql.append("	AND ");
		sql.append("	TRPT_NM_CN LIKE "+getString("TRPT_NM_CN")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHNL_CD LIKE "+getString("SLS_CHNL_CD")+"");
		sql.append("	AND ");
		sql.append("	BRNC_CD LIKE "+getString("BRNC_CD")+"");
		sql.append("	AND ");
		sql.append("	SLS_CHRG_CD LIKE "+getString("SLS_CHRG_CD")+"");
		sql.append("	AND ");
		sql.append("	APL_BDT LIKE "+getString("APL_DATE")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') >"+((getString("FRM_DT").equals(""))?" is null ":"=")+getString("FRM_DT")+" ");
		sql.append("	AND ");
		sql.append("	TO_CHAR(UPD_DTTM,'YYYYMMDD') <"+((getString("TO_DT").equals(""))?" is null ":"=")+getString("TO_DT")+" ");
		sql.append("	AND ");
		sql.append("	FM_TYP <> "+getString("FM_TYP6")+" ");
		sql.append("	ORDER BY ");
		sql.append("	VDR_CD,GNR_ADM_NO ASC ");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M1901(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(CHRG_NM_CN,'') AS CHRG_NM_CN ");
		sql.append("	FROM ");
		sql.append("	M19 ");
		sql.append("	WHERE  ");
		sql.append("	CHRG_CD "+((getString("CHRG_CD").equals(""))?" is null ":"=")+getString("CHRG_CD")+" ");
		sql.append("	AND");
		sql.append("	FM_TYP <> "+getString("FM_TYP_6")+"");
		sql.append("	AND");
		sql.append("	FM_TYP <> "+getString("FM_TYP_9")+" ");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}


	public void setCTRL_DVSN_CD(String value){
		if(value==null) {
			paramsString.remove("CTRL_DVSN_CD");
			return;
		}
		paramsString.put("CTRL_DVSN_CD",value);
	}


	public void setFM_TYP6(String value){
		if(value==null) {
			paramsString.remove("FM_TYP6");
			return;
		}
		paramsString.put("FM_TYP6",value);
	}


	public void setVDR_CD(String value){
		if(value==null) {
			paramsString.remove("VDR_CD");
			return;
		}
		paramsString.put("VDR_CD",value);
	}


	public void setTRPT_CLSS_D_TYP(String value){
		if(value==null) {
			paramsString.remove("TRPT_CLSS_D_TYP");
			return;
		}
		paramsString.put("TRPT_CLSS_D_TYP",value);
	}


	public void setTRPT_NM_CN(String value){
		if(value==null) {
			paramsString.remove("TRPT_NM_CN");
			return;
		}
		paramsString.put("TRPT_NM_CN",value);
	}


	public void setSLS_CHNL_CD(String value){
		if(value==null) {
			paramsString.remove("SLS_CHNL_CD");
			return;
		}
		paramsString.put("SLS_CHNL_CD",value);
	}


	public void setBRNC_CD(String value){
		if(value==null) {
			paramsString.remove("BRNC_CD");
			return;
		}
		paramsString.put("BRNC_CD",value);
	}


	public void setSYS_DATE(String value){
		if(value==null) {
			paramsString.remove("SYS_DATE");
			return;
		}
		paramsString.put("SYS_DATE",value);
	}


	public void setSLS_CHRG_CD(String value){
		if(value==null) {
			paramsString.remove("SLS_CHRG_CD");
			return;
		}
		paramsString.put("SLS_CHRG_CD",value);
	}


	public void setRGS_D(String value){
		if(value==null) {
			paramsString.remove("RGS_D");
			return;
		}
		paramsString.put("RGS_D",value);
	}


	public void setUPD_D(String value){
		if(value==null) {
			paramsString.remove("UPD_D");
			return;
		}
		paramsString.put("UPD_D",value);
	}


	public void setFRM_DT(String value){
		if(value==null) {
			paramsString.remove("FRM_DT");
			return;
		}
		paramsString.put("FRM_DT",value);
	}


	public void setTO_DT(String value){
		if(value==null) {
			paramsString.remove("TO_DT");
			return;
		}
		paramsString.put("TO_DT",value);
	}


	public void setFM_TYP9(String value){
		if(value==null) {
			paramsString.remove("FM_TYP9");
			return;
		}
		paramsString.put("FM_TYP9",value);
	}


	public void setPC_CTRL_DVSN_CD(String value){
		if(value==null) {
			paramsString.remove("PC_CTRL_DVSN_CD");
			return;
		}
		paramsString.put("PC_CTRL_DVSN_CD",value);
	}


	public void setAPL_DATE(String value){
		if(value==null) {
			paramsString.remove("APL_DATE");
			return;
		}
		paramsString.put("APL_DATE",value);
	}


	public void setCHRG_CD(String value){
		if(value==null) {
			paramsString.remove("CHRG_CD");
			return;
		}
		paramsString.put("CHRG_CD",value);
	}


	public void setFM_TYP_6(String value){
		if(value==null) {
			paramsString.remove("FM_TYP_6");
			return;
		}
		paramsString.put("FM_TYP_6",value);
	}


	public void setFM_TYP_9(String value){
		if(value==null) {
			paramsString.remove("FM_TYP_9");
			return;
		}
		paramsString.put("FM_TYP_9",value);
	}


}
